<template>
  <div>
    <FormPanel  
        ref="formPanel"
        :list="initForm"   
        :cols="2"          
        :labelWidth="110"  
        :isSubmitBtn="false"  
        formType="show"
        class="mtop"
     />
  </div>
</template>

<script>
import { dictionary } from '@/utils/dictMixin';
export default {
  name:'infoBase',
  mixins: [dictionary],
  props:{
    id: {
      type: Number,
      required: true
    },
  },
  data() {
    return {
      initForm : this.initFormFun()
    };
  },
  mounted() {
    console.log(this.id) //获取到行id 
    //请求接口进行赋值，自己写吧
  },
  methods: {
    //搜索数据
    initFormFun(){
        return [{
              type: 'INPUT',
              label: '大客户区域经理',
              fieldName: 'field1',
              initialValue: ''
            },{
              type: 'INPUT',
              label: '分配时间1',
              fieldName: 'field2',
              initialValue: ''
            },{
              type: 'INPUT',
              label: '经销商',
              fieldName: 'field3',
              initialValue: ''
            },{
              type: 'INPUT',
              label: '分配时间',
              fieldName: 'field4',
              initialValue: ''
            }
          ]
    }
  },
}
</script>